package ks.client.controllers.requests;

import javax.swing.JFrame;

import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

import ks.client.UserContext;
import ks.client.gui.GMGUI;
import ks.client.lobby.Lobby;
import ks.client.lobby.RoomGUI;
import ks.framework.common.Message;
import ks.framework.interfaces.IProcessMessage;
import ks.managers.table.Table;
import ks.managers.table.TableManager;

/**
 * @author Christopher Page
 */
public class AckController implements IProcessMessage{
	Lobby lobby;

	public AckController(Lobby lobby){ 
		this.lobby = lobby;
	}
	
	public boolean process(Message m){
		Node output = m.contents();
		String s = "Ack Received:" + output.getTextContent();
		lobby.append(s);
		lobby.getKommander().runAckAction(m.id);
		
		return true;
	}
}
	
